package condition;

import elements.Element;

/**
 * A class of unary basic conditions.
 * 
 * @version	3.0
 * @author 	Lies Tambeur 	r0264469	2Bcwsbbh
 * @author	Eline Vanrykel	r0264543	2Bcwselt
 *
 */
public class True extends UnaryBasicCondition {
	
	/**
	 * Always returns true.
	 */
	@Override
	public boolean evaluate(Element element) {
		return true;
	}
	
	@Override
	public String toString(){
		return "(true)";
	}
	
	@Override
	public boolean equals(Object object){
		if(object == null || this==null){
			return false;
		}
		return this.toString().equals(object.toString());
	}

}
